package cn.edu.nuc.crm.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import cn.edu.nuc.crm.entity.Sysfunction;


public interface SysfunctionMapper {
    int deleteByPrimaryKey(Integer funid);
    /**
     * 增加系统功能
     * @param record
     * @return
     */
    int insert(Sysfunction record);

    int insertSelective(Sysfunction record);

    Sysfunction selectByPrimaryKey(Integer funid);

    int updateByPrimaryKeySelective(Sysfunction record);

    int updateByPrimaryKey(Sysfunction record);
	/**
	 * 列出功能列表
	 * @return
	 */
	List<Sysfunction> sysfunctionlist();

	int count();

	List<Sysfunction> findByid(@Param("start")int start,@Param("offset")int offset);
	
	
	List<Sysfunction> selectByName(String funname);
	
	List<Sysfunction> select();
	
	List<Sysfunction> select1(int roleid);
	List<Sysfunction> select3();
	List<Sysfunction> select2();
}
